package com.example.month11.appupdate.updater;

import com.example.month11.appupdate.updater.net.INetManager;
import com.example.month11.appupdate.updater.net.OkHttpNetManager;

public class AppUpdater {

    private static AppUpdater mInstance = new AppUpdater();

    // 很多种具体的实现(okhttp,volley,httpClient, httpUrlConn...)
    private INetManager mNetManager = new OkHttpNetManager();
    // 可在application中调用，进行替换。
//    public void setNetManager(INetManager manager) {
//        this.mNetManager = manager;
//    }

    public INetManager getNetManager() {
        return mNetManager;
    }

    public static AppUpdater getInstance() {
        return mInstance;
    }


}
